package com.feonix.common.controller;

import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.feonix.common.util.VerifyCode;

/**
 * 
 * @CopyRight (c)1993-2017
 * @Project m-complat-common
 * @Comments 验证码插件类
 * @NameSpace com.feonix.common.controller
 * @Author Feonixzw
 * @CreateDate 2017年11月13日
 */
@Controller("com.feonix.common.controller.ComponentController")
@RequestMapping
public class ComponentController {

	@RequestMapping("verifyCode")
	@ResponseBody
	public String showVerifyCode(HttpServletResponse response, String rand) {
		return VerifyCode.generate(response, rand);
	}

}
